﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpWeb
{
    /// <summary>
    /// Link标签
    /// </summary>
    public class LinkTag : TagComponent
    {
        protected override string TagName
        {
            get
            {
                return "link";
            }
        }
        protected override bool CloseItSelf
        {
            get
            {
                return true;
            }
        }
        
        /// <summary>
        /// 定义当前文档与被链接文档之间的关系。
        /// </summary>
        public string rel
        {
            get { return this.Attributes["rel"]; }
            set { this.Attributes["rel"] = value; }
        }
        /// <summary>
        /// 定义被链接文档的位置。
        /// </summary>
        public string Href
        {
            get { return this.Attributes["href"]; }
            set { this.Attributes["href"] = value; }
        }

    }
}
